A sedimentary rock consisting of individual grains of sand (commonly composed of quartz) cemented together by silica, calcium carbonate, iron oxide, etc.  Sandstone is a common rock in which petroleum and water accumulate.